﻿/*
 * User: Masy Freddy
 * Date: 09/02/2012
 * Time: 7:12 
 */
using System;
using System.AddIn.Pipeline;
using MetaVideoEditorEvolved.AddIn.Contracts;
using MetaVideoEditorEvolved.AddIn.HostViews;

namespace MetaVideoEditorEvolved.AddIn.HostAdapters
{
	/// <summary>
	/// Description of ExtraToolsAdapter.
	/// </summary>
	[HostAdapter]
	public class ExtraToolsAdapter : ExtraToolsView
	{
		private Contracts.IExtraToolsContract extraToolsContract;
		private System.AddIn.Pipeline.ContractHandle handle;
		
		public ExtraToolsAdapter(IExtraToolsContract extraToolsContract)
		{
			this.extraToolsContract = extraToolsContract;
			
			handle = new ContractHandle(extraToolsContract);
		}

		public override void ShowOption()
		{
			this.extraToolsContract.ShowOption();
		}
		
		public override bool HasOption()
		{
			return this.extraToolsContract.HasOption();
		}
	}
}
